﻿Vue.config.productionTip = false;Vue.config.devtools = false;Vue.config.errorHandler = function(err, vm, info) {console.error("Error: " + err.toString() + "\nInfo: " + info);};Vue.config.warnHandler = function(msg, vm, trace) {console.warn("Warn: " + msg + "\nTrace: " + trace);};Vue.component("navigator", {props:["item"], data:function() {return {navList:[{name:"\u0424\u043e\u0440\u0443\u043c\u044b", url:"/", "class":"forum-a", index:1, children:[{url:"/information_security", name:"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c", total:"item-1"}, {url:"/programming", name:"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", total:"item-2"}, {url:"/web_programming", name:"Web-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435", total:"item-3"}, {url:"/software", name:"\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435", total:"item-4"}, {url:"/forum_work", name:"\u0420\u0430\u0431\u043e\u0442\u0430 \u0444\u043e\u0440\u0443\u043c\u0430", total:"item-5"}]}, {name:"\u041f\u0440\u0430\u0432\u0438\u043b\u0430", url:"/threads?f=2&act=5", "class":"regul-a", index:1}, {name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438", url:"/members", "class":"users-a", index:1}, {name:"BB-\u043a\u043e\u0434\u044b", url:"/bbcode", "class":"bb-a", index:1}]};}, template:'\n    <div class="left">\n        <div class="logo-header">\n            <span class="tints">R</span>\n            <span>E</span>\n            <span class="tints">E</span>\n            <span>N</span>\n            <span class="tints">S</span>\n            <span>Q</span>\n        </div>\n        <nav id="navigator" class="menu-website">\n            <ul class="ul-nav">\n                <li v-for="item in navList">\n                    <template v-if="item.children">\n                        <a :class="item.class"\n                           :href="item.url"\n                           :title="item.name">{{ item.name }} <i class="fas fa-chevron-down"></i></a>\n                        <ul class="popup-nav-menu">\n                            <li v-for="{ url, name, index, total } in item.children"\n                                :key="index">\n                                <a :href="url"\n                                   :title="name"\n                                   :class="total">{{ name }}</a>\n                            </li>\n                        </ul>\n                    </template>\n                    <template v-else>\n                        <a :class="item.class"\n                           :href="item.url"\n                           :title="item.name">{{ item.name }}</a>\n                    </template>\n                </li>\n            </ul>\n        </nav>\n    </div>\n    '});Vue.component("right-navigator", {props:["item"], data:function() {return {listGuest:[{name:"\u0412\u0445\u043e\u0434", url:"/login", iClass:"fas fa-sign-in-alt"}, {name:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f", url:"/register", iClass:"fas fa-user-plus"}], listAuth:[]};}, props:{aside:true, authorized:false, login:false, register:false}, template:'\n    <div class="right">\n        <div class="right-bar-row">\n            <template v-if="aside==true">\n                <div class="p-account p-navgroup">\n                    <span>\n                        <a class="nav-group-link"\n                            href="/login">\n                        <i class="fas fa-sign-in-alt"></i>\u0412\u0445\u043e\u0434</a>\n                     </span>\n                     <span>/</span>\n                     <span>\n                         <a class="nav-group-link"\n                                href="/register">\n                         <i class="fas fa-user-plus"></i>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f</a>\n                    </span>\n                </div>\n                <div class="p-navgroup p-search">\n                    <i class="fas fa-toggle-off" style="margin: 3.3px 0 0 4px" id="sub_close"></i>\n                </div>\n            </template>\n\n            <template v-if="aside==false">\n                <div class="p-account p-navgroup">\n                    <span>\n                        <a class="nav-group-link"\n                            href="/login">\n                        <i class="fas fa-sign-in-alt"></i>\u0412\u0445\u043e\u0434</a>\n                    </span>\n                    <span>/</span>\n                    <span>\n                        <a class="nav-group-link"\n                            href="/register">\n                        <i class="fas fa-user-plus"></i>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f</a>\n                   </span>\n                </div>\n            </template>\n\n            <template v-if="login==true">\n                <div class="p-account p-navgroup">\n                    <a href="/register" class="nav-group-link"><i class="fas fa-user-plus"></i> \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f</a>\n                </div>\n            </template>\n\n            <template v-if="register==true">\n                <div class="p-account p-navgroup">\n                    <a href="/login" class="nav-group-link"><i class="fas fa-sign-in-alt"></i> \u0412\u0445\u043e\u0434</a>\n                </div>\n            </template>\n        </div>\n    </div>\n    '});
new Vue({el:"#header"});